package com.sky.mapper;

import com.sky.anno.AutoFill;
import com.sky.entity.DishFlavor;
import com.sky.enumeration.OperationType;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface DishFlavorMapper {
    /**
     * 新增菜品口味
     * @param flavors
     */

    void insertBatch(List<DishFlavor> flavors);

    /**
     * 删除风味信息
     * @param ids
     */
    void deleteByfalvorId(List<Long> ids);

    /**
     * 根据dish_id查询风味
     * @param id
     * @return
     */
    List<DishFlavor> getByDish(@Param("dishId") Long id);
}
